package com.zhentao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.common.dtos.ResponseResult;
import com.zhentao.constants.UserThreadLocal;
import com.zhentao.user.domain.AppUser;
import com.zhentao.user.domain.AppUserMember;
import com.zhentao.service.AppUserMemberService;
import com.zhentao.mapper.AppUserMemberMapper;
import org.springframework.stereotype.Service;

/**
* @author 86188
* @description 针对表【app_user_member】的数据库操作Service实现
* @createDate 2024-08-30 15:59:14
*/
@Service
public class AppUserMemberServiceImpl extends ServiceImpl<AppUserMemberMapper, AppUserMember>
    implements AppUserMemberService{

    @Override
    public ResponseResult kaitong(Integer type) {
        AppUser userInfo = UserThreadLocal.getUserInfo();
        if(userInfo == null){
            return ResponseResult.errorResult(501,"未登录");
        }
        if (type == null){
            return ResponseResult.errorResult(501,"参数错误");
        }

        return null;
    }
}




